﻿using PoliticalClassifier.Support;
using System;

namespace PoliticalClassifier.Domain
{
    /// <summary>
    /// WeightAttribute class represents the weight used in a given equation.
    /// </summary>
    public class WeightAttribute : IWeightAttribute
    {
        #region Construction
        /// <summary>
        /// Constructs a weight attribute object.
        /// </summary>
        /// <param name="name">The name of the weight attribute.</param>
        /// <param name="point">The location of the weight object.</param>
        public WeightAttribute(String name, Point2D point)
        {
            m_strName = name;
            m_point = point;
        }
        #endregion

        #region Public Properties
        /// <summary>
        /// Get the name of the weight attribute.
        /// </summary>
        public string Name
        {
            get { return m_strName; }
        }
        /// <summary>
        /// Gets or sets Point2d representing weight value associated with X and Y.
        /// </summary>
        public Point2D Value
        {
            get { return m_point; }
            set { m_point = value; }
        }
        #endregion

        #region Pivate Fields
        private String m_strName;
        private Point2D m_point;
        #endregion
    }
}
